import request from '@/utils/request'

// 查询协议设置列表
export function listAgreementConfig(query) {
  return request({
    url: '/agreementConfig/agreementConfig/list',
    method: 'get',
    params: query
  })
}

// 查询协议设置详细
export function getAgreementConfig(id) {
  return request({
    url: '/agreementConfig/agreementConfig/' + id,
    method: 'get'
  })
}

// 新增协议设置
export function addAgreementConfig(data) {
  return request({
    url: '/agreementConfig/agreementConfig',
    method: 'post',
    data: data
  })
}

// 修改协议设置
export function updateAgreementConfig(data) {
  return request({
    url: '/agreementConfig/agreementConfig',
    method: 'put',
    data: data
  })
}

// 删除协议设置
export function delAgreementConfig(id) {
  return request({
    url: '/agreementConfig/agreementConfig/' + id,
    method: 'delete'
  })
}
